<?php
/**
 * Created by PhpStorm.
 * User: ysw
 * Date: 2020/6/29
 * Time: 17:16
 */

namespace app\api\model;


use think\Model;

class UserVoteShareModel extends Model
{
    protected $name = "user_vote_share";
    // 开启自动写入时间戳字段
    protected $autoWriteTimestamp = true;
    // 定义时间戳字段名
    protected $createTime = 'create_time';
    protected $updateTime = 'update_time';
    protected $resultSetType = 'collection';

    static private $instance;

    static public function getInstance(){
        if (!self::$instance instanceof self) {
            self::$instance = new self();
        }
        return self::$instance;
    }
}